import 'package:flutter/material.dart';
import '../../pages/Tabs.dart';

class RegisterThirdPage extends StatelessWidget {
  const RegisterThirdPage({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
       appBar: AppBar(
         title: Text('注册第三步'),
       ),
       body: Center(
         child: Column(
          children: <Widget>[
            SizedBox(height: 40,),
            Text("注册第三步"),
            RaisedButton(
              child: Text("确定"),
              onPressed: (){
                // 返回根目录 方法一
                Navigator.of(context).pop(); 
                // 方法二
                //  Navigator.of(context).pushAndRemoveUntil(
                //    new MaterialPageRoute(builder: (context) => new Tabs(index:2)),
                //     (route) => route == null
                //  );
              },
            )
          ],
      ),
       )
    );
  }
}